﻿using System;

namespace YawetagLib.Data
{
    public struct DataContextInfo
    {
        public static DataContextInfo New(Type type, Func<Guid, IDataContext> initializer)
        {
            return new DataContextInfo { Type = type, Initializer = initializer };
        }

        public Type Type { get; private set; }

        public Func<Guid, IDataContext> Initializer { get; private set; }
    }
}
